package com.example.mapper;

import com.example.entity.UploadFile;
import com.example.entity.example.UploadFileExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface UploadFileMapper {
    long countByExample(UploadFileExample example);

    int deleteByExample(UploadFileExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UploadFile record);

    int insertSelective(UploadFile record);

    List<UploadFile> selectByExample(UploadFileExample example);

    UploadFile selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UploadFile record, @Param("example") UploadFileExample example);

    int updateByExample(@Param("record") UploadFile record, @Param("example") UploadFileExample example);

    int updateByPrimaryKeySelective(UploadFile record);

    int updateByPrimaryKey(UploadFile record);

    List<UploadFile> selectByExampleWithLimit(@Param("id") Integer id, @Param("username") String username, @Param("fileName") String fileName, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate, @Param("begin") int begin, @Param("pageSize") Integer pageSize);

    int getCountByExample(@Param("id") Integer id, @Param("username") String username, @Param("fileName") String fileName, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
}